package io.knifer.gokexceltask.utils;

import com.alibaba.excel.metadata.data.ReadCellData;

public class CellDataUtils {
    private CellDataUtils(){}

    public static String get(ReadCellData<?> cellData){
        String stringValue = cellData.getStringValue();

        if (stringValue == null){
            stringValue = cellData.getNumberValue().toPlainString();
        }

        return stringValue;
    }
}
